<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class ErrorController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function error(Request $request)
    {
        $url = $request->url;
        header("refresh:3;url=".$url);
        $message = $request->message;
        return view('errors\error',['message'=>$message]);
    }
}
